package com.irdstudio.efp.nls.service.domain;

import java.io.Serializable;

/**
 * template_file_upload_record
 * @author 
 */
public class TemplateFileUploadRecordKey implements Serializable {

    /**
     * 授信流水号
     */
    private String applySeq;

    /**
     * 业务类型（如：授信协议模板文件上传）
     */
    private String bizType;

    /**
     * 影像文件类型（具体到业务类型下的某种影像文件）
     */
    private String imageType;

    private static final long serialVersionUID = 1L;

    public String getApplySeq() {
        return applySeq;
    }

    public void setApplySeq(String applySeq) {
        this.applySeq = applySeq;
    }

    public String getBizType() {
        return bizType;
    }

    public void setBizType(String bizType) {
        this.bizType = bizType;
    }

    public String getImageType() {
        return imageType;
    }

    public void setImageType(String imageType) {
        this.imageType = imageType;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TemplateFileUploadRecordKey other = (TemplateFileUploadRecordKey) that;
        return (this.getApplySeq() == null ? other.getApplySeq() == null : this.getApplySeq().equals(other.getApplySeq()))
            && (this.getBizType() == null ? other.getBizType() == null : this.getBizType().equals(other.getBizType()))
            && (this.getImageType() == null ? other.getImageType() == null : this.getImageType().equals(other.getImageType()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getApplySeq() == null) ? 0 : getApplySeq().hashCode());
        result = prime * result + ((getBizType() == null) ? 0 : getBizType().hashCode());
        result = prime * result + ((getImageType() == null) ? 0 : getImageType().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", applySeq=").append(applySeq);
        sb.append(", bizType=").append(bizType);
        sb.append(", imageType=").append(imageType);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}